<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查询所有信息</title>
<link rel="stylesheet" href="css/bootstrap.css" />
</head>
<body>
	<table class="table table-striped table-bordered table-hover">
		<tr class="danger">
			<td>用户编号</td>
			<td>用户名</td>
			<td>用户密码</td>
			<td>电子邮箱</td>
			<td>用户性别</td>
			<td>用户地址</td>
			<td>兴趣爱好</td>
			<td>添加时间</td>
			<td>操作</td>
		</tr>

		<c:forEach var="u" items="${userList}">
			<tr class="success">
				<td class="active">${u.user_id }</td>
				<td class="success">${u.user_nickname}</td>
				<td class="warning">${u.user_password }</td>
				<td class="danger">${u.user_email }</td>
				<td class="success">${u.user_sex}</td>
				<td class="danger">${u.user_address}</td>
				<td class="active">${u.user_hobby }</td>
				<td class="warning">${u.user_addtime}</td>
				<td>
					<a class="btn btn-success" href="add.jsp">添加</</a>
					<a class="btn btn-danger" href="delete.do?id=${u.user_id }">删除</</a>
					<a class="btn btn-primary" href="toUpdate.do?id=${u.user_id }">修改</</a>&nbsp;
				</td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>